#ifndef __HELLOWORLD_FILE_OPERATION__
#define __HELLOWORLD_FILE_OPERATION__

#include <string>

class FileOperation
{
public:


	/// 
	/// save file 
	///				[type]				[description]
	/// @param 1 :	string				file Name
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 17 - 06 - 2014
	/// time_end: 17 - 06 - 2014
	///	version : 0.1
	static void fSaveFile(std::string fileName);

	/// read file
	///				[type]				[description]
	/// @param 1 :	string				file name
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 17 - 06 - 2014
	/// time_end: 17 - 06 - 2014
	///	version : 0.1
	static void fReadFile(std::string fileName);

	/// get file
	///				[type]				[description]
	///	@param 1 :	char*				mode get file : r, w
	/// @param 2 :	string				file Name
	/// @return		FILE|NULL			return file
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 17 - 06 - 2014
	/// time_end: 17 - 06 - 2014
	///	version : 0.1
	static FILE* fGetFile(std::string fileName, char* mode);

	/// 
	/// get path of file in devices
	///				[type]				[description]
	///	@param 1	string				file name
	///	return 		string				path of local
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 17 - 06 - 2014
	/// time_end: 17 - 06 - 2014
	///	version : 0.1
	static std::string fGetFilePath(std::string fileName);


	/// 
	/// get top score from file name
	///
	///				[type]			[description]
	///	@param 1	string			file name
	/// @return		int				top score
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 16 - 06 - 2014
	/// time_end: 16 - 06 - 2014
	///	version : 0.1
	static int fGetTopScore(std::string fileName);

	/// 
	/// save best score to file name
	///
	///				[type]			[description]
	///	@param 1	string			file name
	/// @return		int				top score
	/// CHU THICH CHI TIET VE HAM
	/// 
	///
	/// @author HMQUAN
	/// time_create: 16 - 06 - 2014
	/// time_end: 16 - 06 - 2014
	///	version : 0.1
	static void fSetTopScore(std::string fileName, int score);
};

#endif
